/* $Id: str_fpath.c,v 1.2 2003/10/18 09:01:01 sby Exp $ */

#include "dao.h"
 
void
setdirpath(fpath, direct, fname)
  char *fpath, *direct, *fname;
{
  int ch;
  char *target = NULL;
      
  while ((ch = *direct) != 0)
  {
    *fpath++ = ch;
    if (ch == '/')
      target = fpath;
    direct++;
  }
                              
  if (target)
    strcpy(target, fname);
}

